//////////////////////////////////////////////////////////////////////////
// PeekPocket - the hassle-free WiFi scanner for Windows Mobile
// coded by dzolee
// http://dzolee.blogspot.com
//
// OptionsDlg - this is the options tab
//////////////////////////////////////////////////////////////////////////

#pragma once
#include "afxwin.h"
#include "afxcmn.h"

#include "ColoredDlg.h"
#include "CustomSlider.h"
#include "CustomButton.h"

// COptionsDlg dialog

class COptionsDlg : public CColoredDlg
{
	DECLARE_DYNAMIC(COptionsDlg)

public:
	COptionsDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~COptionsDlg();

// Dialog Data
	enum { IDD = IDD_OPTIONS_DLG };

protected:

	// Generated message map functions
	virtual BOOL OnInitDialog();
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	void DrawListFontSizeText();

	DECLARE_MESSAGE_MAP()

	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);

	void CreateScanSpeedText(int sp);

	afx_msg void OnBnClickedAboutBtn();
	afx_msg void OnBnClickedHidePeers();
	afx_msg void OnBnClickedHideSec();
	afx_msg void OnBnClickedSoundOn();
	afx_msg void OnPaint();

	//font for checkboxes/buttons
	CFont m_Font;

public:
	CComboBox m_adapters;
	CCustomSlider m_speed;
	CCustomButton m_hidepeers;
	CCustomButton m_hidesec;
	CCustomButton m_soundoff;
	CString m_strScanSpeed;

	CCustomSlider m_fontsize;
	CCustomButton m_btnAbout;
	CCustomButton m_btnLang;
	CString m_staticUseAdapter;
	CString m_staticScanSpeed;
	CString m_staticListFontSize;
	bool ConfirmLangChange(CString strLang);
	void LangChangedMsg(void);

	afx_msg void OnBnClickedLangBtn();
	afx_msg void OnLangEn();
	afx_msg void OnLangHu();
	afx_msg void OnLangFr();
	afx_msg void OnLangPl();
	afx_msg void OnLangPt();
	afx_msg void OnLangRu();
	afx_msg void OnLangDe();
	afx_msg void OnLangNl();
	afx_msg void OnLangIt();
	afx_msg void OnLangCz();
	afx_msg void OnLangDk();
	afx_msg void OnLangNo();
	afx_msg void OnLangSe();
	afx_msg void OnLangEs();
};
